﻿@model AP.Framework.Infrastructure.Entities.cms_CompanyProfile
<script type="text/javascript">
    $(function () {
        $('#Content').xheditor({ upLinkUrl: "/Admin/CompanyProfile/Upload",
            upLinkExt: "zip,rar,txt",
            upImgUrl: "/Admin/CompanyProfile/Upload",
            upImgExt: "jpg,jpeg,gif,png"
        });

    });      
</script>
@Html.ValidationSummary(true)
<div class="control-group">
    <label class="control-label">
        标题</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.Title, new { @placeholder = "标题", style = "width:98%;" })
        @Html.ValidationMessageFor(model => model.Title)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        作者</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.Author, new { @placeholder = "作者", style = "width:98%;" })
        @Html.ValidationMessageFor(model => model.Author)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        摘要</label>
    <div class="controls">
        @Html.TextAreaFor(model => model.ZhaiYao, new { @placeholder = "摘要", style = "width:98%;" })
        @Html.ValidationMessageFor(model => model.ZhaiYao)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        正文</label>
    <div class="controls">
        @Html.TextAreaFor(model => model.Content, new { @placeholder = "描述", style = "width:100%; height:500px;" })
        @Html.ValidationMessageFor(model => model.Content)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        排序号</label>
    <div class="controls">
        @Html.TextBoxFor(model => model.Sequence, new { @placeholder = "排序号" })
        @Html.ValidationMessageFor(model => model.Sequence)
    </div>
</div>
<div class="control-group">
    <label class="control-label">
        是否隐藏/锁定</label>
    <div class="controls">
        <label class="checkbox">
            @Html.CheckBoxFor(model => model.IsDisable)
            @Html.ValidationMessageFor(model => model.IsDisable)
        </label>
    </div>
</div>
<div class="control-group">
    <div class="controls">
        <button type="submit" class="btn">
            保 存</button>
    </div>
</div>
